﻿using Microsoft.Owin;
using Owin;
using System.Data.Entity.Infrastructure.Interception;
using Yz.ApiService;
using Yz.Core.DBUtility;

[assembly: OwinStartup(typeof(Startup))]

namespace Yz.ApiService
{
    public partial class Startup
    { //开启EF数据追踪

        public void Configuration(IAppBuilder app)
        {
            DbInterception.Add(new EFDbLogger());
            app.RegisterAutofac();
        }
    }
}
